home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / aros / devs / nil_handler_gcc.h < prev    next >
C/C++ Source or Header  |  1996-09-12  |  889b  |  43 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: nil_handler_gcc.h,v 1.1 1996/09/11 12:52:54 digulla Exp $
  4.     $Log: nil_handler_gcc.h,v $
  5.     Revision 1.1  1996/09/11 12:52:54  digulla
  6.     Two new devices by M. Fleischer: RAM: and NIL:
  7.  
  8.     Revision 1.2  1996/08/01 17:41:23  digulla
  9.     Added standard header for all files
  10.  
  11.     Desc:
  12.     Lang:
  13. */
  14. #ifndef EMUL_HANDLER_GCC_H
  15. #define EMUL_HANDLER_GCC_H
  16. #include <aros/libcall.h>
  17. #include <exec/execbase.h>
  18. #include <exec/devices.h>
  19. #include <dos/dos.h>
  20.  
  21. struct nilbase
  22. {
  23.     struct Device device;
  24.     struct ExecBase *sysbase;
  25.     struct DosLibrary *dosbase;
  26.     BPTR seglist;
  27. };
  28.  
  29. #define expunge() \
  30. __AROS_LC0(BPTR, expunge, struct nilbase *, nilbase, 3, nil_handler)
  31.  
  32. #ifdef SysBase
  33.     #undef SysBase
  34. #endif
  35. #define SysBase nilbase->sysbase
  36. #ifdef DOSBase
  37.     #undef DOSBase
  38. #endif
  39. #define DOSBase nilbase->dosbase
  40.  
  41. #endif
  42.  
  43.